<?php

include 'XSocial.php';

$xsocial = new XSocial();

//the root path for xsocial
$xsocial->webRoot = "";
//set platform name,see support platform list http://code.google.com/p/xsocial/wiki/SupportPlatform
$xsocial->platform = XSocial::ORKUT;

//set params need for platform authentication
$xsocial->platParams = array(
    'appId' => '...',
    'secret' => '...',
    'title' => 'XSocial',
    'description' => 'XSocial is a framework for app easily integrates with different social platform.',
    'author_email' => 'siriuscor@gmail.com',
    'screenshot' => 'http://xsocial.googlecode.com/files/XSocialGraph2.png',
    'thumbnail' => "http://code.google.com/p/xsocial/logo",
    'icon' => "http://code.google.com/p/xsocial/logo",
);

//the url of App
$xsocial->appIframeUrl = 'http://localhost/xsocial/sample/index.php';

//use for communication between XSocial and App
$xsocial->secretKey = 'app_test';

//begin output html content
$xsocial->service();
